<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body>
<input type="button" value="按钮" onclick="f1()">
<input type="button" value="选择" onclick="f7('张山','男')">


<script>
    function f7(name, gender) {
        return console.log(name + ":" + gender)
    }

    function f1() {
        console.log("f1")
    }

    f1();

    function f2(name, age) {
        console.log(name + ":" + age)
    }

    f2("李淑雅", 25)

    function f3() {
        return "我是返回值！"
    }

    console.log(f3())

    function f4(name, age) {
        return name + ":" + age;
    }

    console.log(f4("我", 25))
    let f5 = function (name, age) {
        console.log(name + ":" + age)
    }
    f5("刘备", 50)
    let f6 = new Function("name", "age", "console.log(name+':'+age)");
    f6("吕布", 38)


</script>
</body>
</html>